Skip to content

[python] Reuse physical video input handles in VideoFrameCollator - #11450

Open
XiaoHongbo-Hope wants to merge 6 commits into
apache:masterfrom
XiaoHongbo-Hope:python/video-file-handle-pool
Open

XiaoHongbo-Hope wants to merge 6 commits into
apache:masterfrom
XiaoHongbo-Hope:python/video-file-handle-pool

Conversation

@XiaoHongbo-Hope

@XiaoHongbo-Hope XiaoHongbo-Hope commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Set read.video.max-cached-files on a table to reuse Arrow S3/OSS input handles across MP4 payloads packed in the same .video object. The default is 0 (disabled). Each collator owns a bounded pool of handles in its worker process. Decoders keep independent cursors, and new decoder inputs resolve current REST credentials before reusing a handle.

Tests

  • Focused video tests: 34 passed, 29 skipped. The OSS regression test resolves OssFileIO through FileIO.get.
  • Shanghai OSS smoke test through FileIO.get("oss://…") with OssFileIO and the legacy Arrow S3FileSystem: file opens fell from 64 to 32 for 64 frames per arm, with identical RGB output.

@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as draft November 25, 2026 11:11
@XiaoHongbo-Hope
XiaoHongbo-Hope marked this pull request as ready for review November 25, 2026 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant